package com.exam.dao;

import java.util.Date;
import java.util.List;

import com.exam.entity.Marker;
import com.exam.entity.TCase;


public interface MarkerDao
{
	/**
	 * 列出满足条件的marker
	 * @param beginDate
	 * @param endDate
	 * @param flag
	 * @return
	 * @throws Exception
	 */
	public List<Marker> listMarker(Date beginDate, Date endDate, boolean flag) throws Exception;
	
	/**
	 * 添加Marker
	 * @param marker
	 * @return
	 * @throws Exception
	 */
	public long addMarker(Marker marker) throws Exception;
	
	/**
	 * 通过ID获得
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Marker getMarkerById(long id) throws Exception;
	
	/**
	 * 通过病例id得到病例的详细信息
	 * @param identify
	 * @return
	 * @throws Exception
	 */
	public TCase getCaseById(long identify) throws Exception;
	
	public Marker getMarkerBySearchCondition(Long id, String name) throws Exception;
}
